package com.fand.template.support;

import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;

import com.fand.cache.support.CacheEvictSupport;

public class TemplateSupportCache implements CacheEvictSupport {
	@Override
	@CacheEvict(value = TemplateSupport.CACHE_NAME, allEntries = true)
	public void reload() {
	}

	@CachePut(value = TemplateSupport.CACHE_NAME, key = "#templateId")
	public String setTemplateString(String templateId, String templateString) {
		return templateString;
	}

	@Cacheable(value = TemplateSupport.CACHE_NAME, key = "#templateId")
	public String getTemplateString(String templateId) {
		return null;
	}
}
